DTF has some internal properties which are useful for writing test case and that allow you to do small things you wouldn't otherwise know how to do, here are the currently available internal DTF properties:
Property | Description |
---|---|
dtf.xml.path | Assigned at the beginning of any DTF run and is always assigned to the location of the XML that defines the currently executed test case. |
dtf.script.id | This is assigned the name of your script that is defined by the name attribute of the script tag. |
dtf.timestamp | Retrieves the System.currentMilliseconds() value dynamically at execution time of the test case. |
dtf.randomInt | Gets a random int value using java.util.Random |
dtf.randomLong | Gets a random long value using java.util.Random |
dtf.randomDouble | Gets a random double value using java.util.Random |
dtf.gaussianLong | Generates a random Long that follows a normal gaussian distribution. |
The random generators can also be passed arguments to specify limits when generating random numbers, like so:
${dtf.randomInt(1000)} - generate a random upto 1000 ${dtf.randomDouble(-100,100)} - generate a random double between -100 and 100